package cn.group7.padserver.controller.responseformat;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 谷汉斌
 * @description 响应结果
 * @createTime 2024/7/22 下午2:40
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result {
    /**
     * 是否成功标志 flag
     */
    private boolean flag;
    /**
     * 返回code code
     */
    private Integer code;
    /**
     * 返回消息 message
     */
    private String message;
    /**
     * 返回数据 data
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Object data;
}
